<?include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/conn_db.php");?>
<?include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/Util.php");?>
<?php $util=new Util();?>
<?include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/BoardConf.php");?>
<?include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/BoardArticle.php");?>
<?include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/BoardFile.php");?>
<?include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/module/BoardComment.php");?>
<?php $bConf=$_GET['bConf'];
$condition = $_GET ['condition']; // 검색영역
$words = $_GET ['words']; // 검색어
$sid = $_GET['sid'];
?>
<? include "inc/inc_header.php" ?><!-- header -->
<?php $title = "게시판"; $sub_title="게시판";?>
<body style="background-repeat: repeat-x; overflow-x:hidden;" oncontextmenu="return false" onselectstart="return false" ondragstart="return false">
<script type="text/javascript">
	function del(obj)
	{
		if (confirm("삭제하시겠습니까?")) window.location = obj.href;
	}
</script>
<?include ($_SERVER ["DOCUMENT_ROOT"] . "/lib/include/inc_board_article_view.php");?>
	<?$txt=9?>
	<? include "inc/inc_top.php" ?><!-- top -->
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	  <tr>
		<td style="BACKGROUND-IMAGE: url(img/surn/cont_bg04.jpg); BACKGROUND-REPEAT: repeat-x; BACKGROUND-position:right top;">&nbsp;</td>
		<td width="994" align="right" style="BACKGROUND-IMAGE: url(img/surn/cont_bg06.jpg); BACKGROUND-REPEAT: repeat-x; BACKGROUND-position:center top;padding-bottom:16px;"><table width="954" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
			  <tr>
				<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
				  <tr>
					<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
						  <td height="2" bgcolor="#212725"></td>
						</tr>
						<tr>
						  <td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#585858">
							  <tr>
								<td width="68%" height="30" align="center" class="dbtit01"><strong>제목</strong></td>
								<td width="1"><img src="img/board/list_line.gif" width="1" height="8" /></td>
								<td width="14%" align="center" class="dbtit01"><strong>글쓴이</strong></td>
								<td width="1"><img src="img/board/list_line.gif" width="1" height="8" /></td>
								<td width="10%" align="center" class="dbtit01"><strong>조회수</strong></td>
							  </tr>
						  </table></td>
						</tr>
						<tr>
						  <td height="1" bgcolor="#585858"></td>
						</tr>
						<tr>
						<td><table width="100%" border="0" cellpadding="0" cellspacing="0">
							  <tr>
								<td width="68%" height="30" align="center" class="dbtit01" style="color:#000;"><strong><?=$obj->article_title?></strong></td>
								<td width="1"><img src="img/board/list_line.gif" width="1" height="8" /></td>
								<td width="14%" align="center" class="dbtit01" style="color:#000;"><strong><?=$obj->article_writer?></strong></td>
								<td width="1"><img src="img/board/list_line.gif" width="1" height="8" /></td>
								<td width="10%" align="center" class="dbtit01" style="color:#000;"><strong><?=$obj->article_hits?></strong></td>
							  </tr>
						  </table></td>
						</tr>
						<tr>
						  <td height="1" bgcolor="#585858"></td>
						</tr>
					</table></td>
				  </tr>
				  <tr>
					<td>
					  <table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
						  <td height="28"><table width="100%" height="28" border="0" cellpadding="0" cellspacing="0">
							  <tr>
								<td width="68%" class="dbtop9" style="padding-left:12px"><?=$obj->article_contents1?></td>
							  </tr>
						  </table></td>
						</tr>
						<tr>
						  <td height="1" bgcolor="#BCBCBC"></td>
						</tr>
					  </table>
					 </td>
				  </tr>
				</table></td>
			  </tr>
			  <tr>
				<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
				  <tr>
					<td height="30"  align="right"><a href="free01.php?<?=$addStr?>"><img src="img/board/bt_list.gif" width="50" height="22" border="0"></a></td>
					<?
						if($obj->article_writer!="관리자"&&$obj->article_writer_id!="admin"&&$obj->article_writer!="개발모드"&&$obj->article_writer_id!="master"){
					?>
					<td height="30"  width="60" align="right" ><a href="free01_w.php?sid=<?=$obj->article_sid?>&mode=modify&<?=$addStr?>"><img src="img/board/bt_modify.gif" width="50" height="22" border="0"></a></td>
					<td height="30"  width="60" align="right" ><a href="/admin/board/board_article_write_proc.php?sid=<?=$obj->article_sid?>&mode=delete&next=/free01.php&<?=$addStr?>" onclick="del(this); return false;"><img src="img/board/bt_del.gif" width="50" height="22" border="0"></a></td>
					<?}?>
				  </tr>
				</table></td>
			  </tr>
			</table></td>
		  </tr>
		</table></td>
		<td style="BACKGROUND-IMAGE: url(img/surn/cont_bg05.jpg); BACKGROUND-REPEAT: repeat-x; BACKGROUND-position:left top;">&nbsp;</td>
	  </tr>
	</table>
	<? include "inc/inc_bottom.php" ?><!-- bottom -->
<? include "inc/inc_footer.php" ?><!-- footer -->